package com.kuns.subject.domian.convert;


import com.kuns.subject.domian.entity.SubjectLabelBO;
import com.kuns.subject.infra.basic.entity.SubjectLabel;
import com.kuns.subject.infra.basic.entity.SubjectMapping;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectLabelConverter {

    SubjectLabelConverter INSTANCE = Mappers.getMapper(SubjectLabelConverter.class);

    // 将BO转成基础设施层entity
    SubjectLabel convertBoToEntity(SubjectLabelBO subjectLabelBO);

    // 将entity转成bo
    List<SubjectLabelBO> convertEntityListToBoList(List<SubjectLabel> subjectLabelList);

}
